home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Ahoy 1985 September
/
Ahoy_Magazine_85-09_1985_Double_L.d64
/
moxeys porch
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-10-26
|
6KB
|
192 lines
5 print"[147]"
10 poke52,48:poke56,48:clr
20 rem * moxeys porch * by bob blackmer
30 dimmv(136):hs=0:a=2:b=39:c=41:mp$="moxeys porch":ps=53270
40 v=53248:s=54272:m=56320:pokev+21,65:poke53280,6:poke53281,11:u=1401
50 forl=stos+24:pokel,0:nextl
60 pokes+5,21:pokes+1,20:pokes+6,240:pokes+4,17:gosub1110
70 print"[147][158]do you want instructions? (y/n)"
80 geti$:ifi$=""then80
90 ifi$="n"then300
100 ifi$<>"y"then80
110 print"[147]"tab(11)"[153]"mp$""
120 print"[159]enzo just got a pogo stick and"
130 printtab(11)"jumped over to his neighbors"
140 printtab(11)"multi-step front porch."
150 print"[158]moxie doesn't like the marks"
160 printtab(11)"enzo's pogo stick is making"
170 printtab(11)"on his porch."
180 printtab(3)"[155]to play use joystick #2 and mark up all the steps on";
190 print" moxie's porch,":printtab(3)"while trying to avoid moxie's pursuit"
200 printtab(3)"[145]if successful you are rewarded with"
210 printtab(3)"another porch and a faster moxie."
220 pokev+23,65:pokev+29,65:poke2040,p:poke2046,q:pokev+37,6:pokev+38,5
230 pokev,60:pokev+1,70
240 pokev+12,60:pokev+13,110
250 printtab(10)"[153]hit any key to begin":fork=1to99:nextk
260 gets$:ifs$=""then280
270 ifs$<>""then290
280 printtab(10)"[145]hit any key to begin[145]":fork=1to99:nextk:goto250
290 pokev+23,0:pokev+29,0
300 sl=0
310 print"[147]"tab(7)"level (1-9)"
320 print""tab(7)"1 is the hardest"
330 getlv$:iflv$=""then330
340 iflv$<"1"orlv$>"9"then330
350 lv=val(lv$)+1
360 print"[147]":poke53272,(peek(53272)and240)+14
370 poke53282,2:poke53283,7:poke53270,peek(53270)or16
380 x2=203:y2=166:x1=157:y1=102:u=1401
390 iflv-1<1thenlv=2
400 lv=lv-1
410 print""tab(12)"[159]"mp$
420 goto450
430 jv=peek(m):fr=jvand16
440 jv=15-(jvand15):return
450 print"[153]"
460 printtab(17)"#$"
470 printtab(16)"#%&$"
480 printtab(15)"#%&%&$"
490 printtab(14)"#%&%&%&$"
500 printtab(13)"#%&%&%&%&$"
510 printtab(12)"#%&%&%&%&%&$"
520 printtab(11)"#%&%&%&%&%&%&$"
530 printtab(10)"#%&%&%&%&%&%&%&$"
540 printtab(9)"#%&%&%&%&%&%&%&%&$"
550 printtab(8)"#%&%&%&%&%&%&%&%&%&$"
560 printtab(8)"'('('('('('('('('('(":pokes+24,15
570 forl=1to136 step2
580 pokes+4,17:pokes+1,55:pokes+4,16
590 x2=x2+mv(l):y2=y2+mv(l+1)
600 forg=lvto1step-1
610 k=1:gosub430
620 poke2040,p:ifk<>lvthenk=k+1:goto620
630 poke2046,q
640 rem ***note*** lines 650-660 must be entered using abbreviations
650 pokev,x1:pokev+1,y1:ifpeek(u)=37thenpokeu,c:pokeu+1,c+1:sc=sc+1:pokes+4,129:pokes+4,128
660 pokev,x1:pokev+1,y1:ifpeek(u)=39thenpokeu,43:pokeu+1,44:sc=sc+1:pokes+4,129:pokes+4,128
670 pokev+12,x2:pokev+13,y2
680 p=p+1:ifp>15thenp=13
690 q=q+1:ifq>199thenq=198
700 ifp=14thenpokes+4,129:pokes+4,128
710 ifjv=4thenx1=x1-16:u=u-a:ifpeek(u)=32thenu=u+a:x1=x1+16
720 ifjv=8thenx1=x1+16:u=u+a:ifpeek(u)=32orpeek(u)=36thenu=u-a:x1=x1-16
730 ifjv=5thenx1=x1-8:y1=y1-8:u=u-c:ifpeek(u)=32thenu=u+c:x1=x1+8:y1=y1+8
740 ifjv=6thenx1=x1-8:y1=y1+8:u=u+b:ifpeek(u)=32thenu=u-b:x1=x1+8:y1=y1-8
750 rem ***note*** lines 760-770 must be entered using abbreviations
760 ifjv=9thenx1=x1+8:y1=y1-8:u=u-b:ifpeek(u)=32orpeek(u)=36thenu=u+b:x1=x1-8:y1=y1+8
770 ifjv=10thenx1=x1+8:y1=y1+8:u=u+c:ifpeek(u)=40orpeek(u)=32thenu=u-c:x1=x1-8:y1=y1-8
780 ifsc=55then970
790 ify1=y2andx1-2=x2then810
800 nextg:nextl:goto570
810 pokev+23,64:pokev+29,64:pokes+4,17:pokes+6,240:x2=180:y2=166:poke2046,199
820 forl=1to99step2
830 x2=x2+mv(l):y2=y2+mv(l+1)
840 pokev+12,x2:pokev+13,y2
850 pokes+1,l+20
860 fork=1to40:nextk
870 nextl
880 pokes+24,0:pokev+23,0:pokev+29,0:print"[147]":pokeps+2,21:pokeps,peek(ps)and239
890 sl=sl+sc*10:sc=0:printspc(12)"[158]"mp$:printtab(11)"[153]your score:[158]";sl
900 ifsl>hsthenhs=sl
910 printtab(11)"[155]high score:";hs
920 print"[158]would you like to play again? (y/n)"
930 getf$:iff$=""then930
940 iff$="n"thenpokev+21,0:pokes+24,0:print"[147]":end
950 iff$<>"y"then930
960 goto300
970 pokev+23,1:pokev+29,1:pokes+4,17:pokes+6,240:x1=170:y1=166
980 forl=1to99step2
990 x1=x1+mv(l):y1=y1+mv(l+1)
1000 pokev,x1:pokev+1,y1
1010 pokes+1,l+20
1020 fork=1to40:nextk
1030 nextl
1040 sl=sl+sc*10
1050 pokes+24,0:pokev+23,0:pokev+29,0:print"[147]":pokeps+2,21:pokeps,peek(ps)and239
1060 printtab(12)"[159]"mp$:printtab(13)"[158]score:";sl:sc=0
1070 iflv-1<1thenlv=2
1080 printtab(10)"[158]you have reached":printtab(14)"level:[153]";lv-1
1090 fork=1to1500:nextk
1100 pokeps,peek(ps)or16:pokeps+2,(peek(ps+2)and240)+14:goto360
1110 print"[147][158]i'm working....please be patient"
1120 poke56334,peek(56334)and254:poke1,peek(1)and251
1130 fori=0to57
1140 forj=0to7
1150 poke14336+i*8+j,peek(v+i*8+j)
1160 nextj:nexti
1170 poke1,peek(1)or4:poke56334,peek(56334)or1
1180 ck=0:forch=35to45
1190 forby=0to7
1200 read nu:ck=ck+nu
1210 poke14336+(8*ch)+by,nu
1220 next by:next ch
1230 ifck<>10450thenprint"error in data-lines 1300-1400":end
1240 ck=0:fors1=832to894:readq1:ck=ck+q1:pokes1,q1:next
1250 fors2=896to958:readq2:ck=ck+q2:pokes2,q2:next
1260 fors3=960to1022:readq3:ck=ck+q3:pokes3,q3:next
1270 fors4=12672to12734:readq4:ck=ck+q4:pokes4,q4:next
1280 fors5=12736to12798:readq5:ck=ck+q5:pokes5,q5:next:p=13:q=198
1290 ifck<>8699thenprint"error in data-lines 1410-1800":end
1300 ck=0:forw=1to136step2:readq6,q7:mv(w)=q6:mv(w+1)=q7:ck=ck+q6+q7:nextw
1310 ifck<>0thenprint"error in data lines 1810-1870":end
1320 pokev+28,65:pokev+37,6:pokev+38,5:pokev+45,0:pokev+39,15:return
1330 data0,0,0,0,2,10,42,170
1340 data0,0,0,0,128,160,168,170
1350 data106,90,86,85,85,149,165,169
1360 data171,175,191,255,255,254,250,234
1370 data106,90,86,85,85,21,5,1
1380 data171,175,191,255,255,252,240,192
1390 data104,90,86,85,85,149,165,169
1400 data43,175,191,255,255,254,250,234
1410 data104,90,86,85,85,21,5,1
1420 data43,175,191,255,255,252,240,192
1430 data0,0,0,0,0,0,0,0
1440 data 0,0,0,0,0,0,0,0
1450 data 0,0,0,0,0,112,0,0
1460 data 136,0,1,4,0,0,112,0
1470 data 1,84,0,4,81,0,4,169
1480 data 0,1,36,0,0,32,0,1
1490 data 36,0,1,36,0,1,36,0
1500 data 1,36,0,1,36,0,0,168
1510 data 0,0,32,0,0,32,0
1520 data 0,0,0,0,0,0,0,0
1530 data 0,0,0,0,0,0,0,0
1540 data 0,0,0,112,0,0,136,0
1550 data 1,4,0,0,112,0,1,84
1560 data 0,4,81,0,4,169,0,1
1570 data 36,0,0,32,0,1,36,0
1580 data 1,36,0,1,36,0,1,36
1590 data 0,1,36,0,0,168,0
1600 data 0,0,0,0,0,0,0,112
1610 data 0,0,136,0,1,4,0,0
1620 data 112,0,1,84,0,4,81,0
1630 data 4,169,0,1,36,0,0,32
1640 data 0,1,36,0,1,36,0,1
1650 data 36,0,1,36,0,1,36,0
1660 data 0,168,0,0,32,0,0,32
1670 data 0,0,0,0,0,0,0
1680 data0,0,0,0,0,0,0,0
1690 data0,0,0,0,0,0,0,0
1700 data0,0,0,0,0,0,0,0
1710 data0,0,0,0,42,0,0,170
1720 data128,2,235,160,2,170,160,2
1730 data255,224,2,170,160,0,170,128
1740 data0,42,0,0,34,0,2,162
1750 data160,0,0,0,0,0,0
1760 data0,0,0,0,0,0,0,0
1770 data0,0,0,0,0,0,0,0
1780 data0,0,0,0,0,0,0,0
1790 data0,0,0,0,0,0,0,0
1800 data0,0,42,0,0,170,128,2
1810 data235,160,2,170,160,2,255,224
1820 data2,191,160,0,170,128,0,42
1830 data0,0,34,0,2,162,160
1840 data-16,0,-16,0,-16,0,-16,0,-16,0,8,-8,8,-8,8,-8,8,-8,-8,-8
1850 data-8,-8,8,-8,8,-8,8,8,8,8,8,8,8,8,-8,8,-8,8,-16,0
1860 data-16,0,-16,0,-8,8,16,0,16,0,-8,-8,-8,-8,8,-8,8,-8,8,-8
1870 data8,8,8,8,8,8,8,8,-8,8,-8,8,-8,8,16,0,16,0,16,0
1880 data16,0,-8,-8,-8,-8,-16,0,8,8,-8,8,-16,0,-16,0
1890 data-16,0,8,-8,8,-8,-8,-8,8,-8,-16,0,-16,0,-16,0,-8,8
1900 data-8,8,-8,8,-8,8,16,0,16,0,16,0,16,0,8,-8,16,0,16,0,16,0